<?php

App::uses('AppModel', 'Model');

/**
 * Block Model
 * 
 * PHP versions 5
 * CAKEPHP versions 2.x
 * 
 * Green CMS - Content Management System and Framework Powerfull by Cakephp
 * Copyright 2012, GREEN GLOBAL CO., LTD (toancauxanh.vn)
 * 
 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @author        Technology Lab No.I <tech1@toancauxanh.vn>
 * @link          
 * @package       Media.Model
 * @since         Green v 1.0
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 *
 * @property Media $Media
 */
class Media extends AppModel {


    /**
     * Name of the validation string domain to use when translating validation errors.
     *
     * @var string
     */
    public $validationDomain = 'system';

    /**
     * List of behaviors
     *
     * @var array
     */
    public $actsAs = array(
        'Serializable'
    );
    
    /**
     * Defined fields using for I18n
     * 
     * @var array
     */
    public $translateFields = array();
    /**
     * Defined fields using serialize and unserialized
     * 
     * @var array
     */
    public $serializeFields = array('data');

    /**
     * Defined to load the config file stored.
     *
     * @var string
     */
    public $configKey = 'Media';

    /**
     * Validation rules.
     *
     * @var array
     */
    public $validate = array();

    //The Associations below have been created with all possible keys, those that are not needed can be removed

    /**
     * belongsTo associations.
     *
     * @var array
     */
   var $belongsTo = array(
		'Field' => array(
		'className' => 'Field',
		'foreignKey' => 'field_id'
		)); 


}

?>